﻿@model IEnumerable<Sispe.Entities.CONDICIONE>

@{
    ViewBag.Title = "CONDICIONES";
}

<p>
    <a href="@Url.Action("Create", "Condicion", new { id = Html.Value("IdContrato") })">
                <img src="@Url.Content("~/Images/add.png")" title="Registrar Condición" alt="Registrar Condición" /></a> 
</p>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>CONDICIONES</legend>

        <div class="editor-field">@Html.Hidden("IdContrato")</div>

        <div class="editor-field"><b>Trabajador: </b></div>
        <input type="text" readonly="true" value="@Html.Value("TRABAJADOR")" />
    </fieldset>
}
<pre></pre>

<table class="table table-striped table-bordered">
    <tr class="danger">
        <th>
            CONDICIÓN
        <th>
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Condicion)
        </td>
        @*<td>
            <a href="@Url.Action("Edit", "Condicion", new { id = item.IdCondicion })">
                <img src="@Url.Content("~/Images/edit.png")" title="Editar" /></a> 
        </td>*@
    </tr>
}

</table>

<p>
    <a href="@Url.Action("Index", "Contrato")">
                <img src ="@Url.Content("~/Images/back.png")" title="Volver a Contratos" 
                    alt="Volver a Contratos" /></a> 
    
</p>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
